package com.efast.cafe.commponent.statemach.service;

import java.util.List;

import com.efast.cafe.commponent.statemach.bean.StateMachResourceTask;

public interface IPortalStateMachResourceTaskService {
	/**
	 * 新增关系
	 * 
	 * @param state
	 */
	public void insertResourceTask(StateMachResourceTask ResourceTask);

	/**
	 * 修改关系
	 * 
	 * @param state
	 */
	public void updateResourceTask(StateMachResourceTask ResourceTask);

	/**
	 * 删除关系
	 * 
	 * @param stateId
	 */
	public void deleteResourceTask(StateMachResourceTask ResourceTask);

	/**
	 * 根据taskId和ObjectName获取数据关系
	 * 
	 * @param taskId
	 * @param ObjectName
	 * @return
	 */
	public StateMachResourceTask getResourceTaskByIdAndName(Long taskId, String ObjectName);

	/**
	 * 根据taskId和ObjectName获取数据关系列表
	 * 
	 * @param taskId
	 * @param ObjectName
	 * @return
	 */
	public List<StateMachResourceTask> getResourceTaskListByIdAndName(Long taskId, String ObjectName);

	/**
	 * 根据TaskId获取数据关系列表
	 * 
	 * @param taskId
	 * @return
	 */
	public List<StateMachResourceTask> getStateMachResourceTaskListByTaskId(Long taskId);

	/**
	 * 根据TaskID和ObjName删除ResourceTask
	 * @param taskId
	 * @param objName
	 */
	public void deleteResourceTaskByTaskId(Long taskId, String objName);
}
